package com.lucenten.collect.gnss.handler.files;

import com.lucenten.collect.gnss.entity.TecpTecl;
import com.lucenten.collect.gnss.entity.trans.TecpTeclTrans;
import com.lucenten.mq.SendJmsInfo;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class NAzimuthElevation extends AzimuthElevation {
    /**
     * 计算仰角 方位角
     */
    public static void compute(TecpTeclTrans tecpTeclTrans,Double[] singlePath, TecpTecl tecpTecl) {
        if (singlePath == null || singlePath[10] == null) {
            return;
        }
        try {
            NTools nTools = new NTools();
            double[] xyz = nTools.before(tecpTeclTrans,singlePath,tecpTecl);
            nTools.after(tecpTeclTrans,tecpTecl, xyz);
//            SendJmsInfo.sendGnssMq(14, "", 0);
        } catch (Exception e) {
            log.error("仰角计算失败",e);
            SendJmsInfo.sendGnssMq(14, "", 1);
        }
    }
}
